package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.BuyBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IBuyMapper extends BaseMapper<BuyBean> {
    /**
     * 根据用户id查询购物车
     * @param userId 用户id
     * @return 购物车集合
     */
    List<BuyBean> findAll(@Param("userId") Integer userId);
}
